import request from '@/http';

// 获取流程部署列表
export function processList(queryParams) {
  return request.post({
    url: '/act/deployment/getDeployment',
    data: queryParams
  });
}

// 保存流程信息
export function updataProcess(queryParams) {
  return request.post({
    url: '/act/deployment/updateDeployment',
    data: queryParams
  });
}

// 获取流程设置
export function getFormElement(queryParams) {
  return request.get({
    url: '/act/deployment/getFormElement',
    params: queryParams
  });
}

// 获取整个流程属性
export function processProperties(queryParams) {
  return request.get({
    url: '/act/deployment/processProperties',
    params: queryParams
  });
}

// 更新流程属性
export function saveProcessProperties(queryParams) {
  return request.post({
    url: '/act/deployment/saveProcessProperties',
    data: queryParams
  });
}
// 获取节点属性
export function userTaskProperties(queryParams) {
  return request.get({
    url: '/act/deployment/userTaskProperties',
    params: queryParams
  });
}
// 更新节点属性
export function saveUserTaskProperties(queryParams) {
  return request.post({
    url: '/act/deployment/saveUserTaskProperties',
    data: queryParams
  });
}
// 删除流程
export function delDefinition(queryParams) {
  return request.get({
    url: '/act/deployment/delDefinition',
    params: queryParams
  });
}
